//// ProjectInoServiceImpl.java
//package com.example.demo.service.impl;
//
//import com.example.demo.dto.ProjectInoDTO;
//import com.example.demo.entity.ProjectIno;
//import com.example.demo.entity.ProjectFile;
//import com.example.demo.mapper.ProjectInoMapper;
//import com.example.demo.mapper.ProjectFileMapper;
//import com.example.demo.service.ProjectInoService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import java.util.List;
//
//@Service
//@Transactional
//public class ProjectInoServiceImpl implements ProjectInoService {
//
//    @Autowired
//    private ProjectInoMapper projectInoMapper;
//
//    @Autowired
//    private ProjectFileMapper projectFileMapper;
//
//    @Override
//    public void saveProjectInoData(ProjectInoDTO projectInoDTO) {
//        List<ProjectIno> projectInoList = projectInoDTO.getProjectList();
//        if (projectInoList!= null &&!projectInoList.isEmpty()) {
//            // 先批量插入ProjectIno数据
//            projectInoMapper.batchInsertProjectIno(projectInoList);
//            for (ProjectIno projectIno : projectInoList) {
//                List<ProjectFile> projectFileList = projectIno.getProjectFileList();
//                if (projectFileList!= null &&!projectFileList.isEmpty()) {
//                    // 再批量插入每个ProjectIno关联的ProjectFile数据
//                    projectFileMapper.batchInsertProjectFile(projectFileList);
//                }
//            }
//        }
//    }
//
//    @Override
//    public ProjectIno getProjectInoById(String projectId) {
//        return projectInoMapper.selectProjectInoById(projectId);
//    }
//
//    @Override
//    public void updateProjectIno(ProjectIno projectIno) {
//        projectInoMapper.updateProjectIno(projectIno);
//    }
//
//    @Override
//    public void deleteProjectInoById(String projectId) {
//        projectInoMapper.deleteProjectInoById(projectId);
//    }
//}